package main;

import main.Special;

public class Worker {

	private String name;
	
	@Observed
	private double salary;
	
	public Worker(String name, double salary) {
		this.name = name;
		this.salary = salary;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	@Special 
	public void work() {
		salary += 1;
	}
	
	
	
}
